<?Php
	require_once('../includes/user.php');
	$user=new User();
	if(isset($_POST['yearid'])){
		$profile_res=mysql_query("select name,id from user_profile where $_POST[yearid]=year");
		while($profile_row=mysql_fetch_array($profile_res))
		{
	?>
    	<option value="<?php echo $profile_row['id']; ?>"><?php echo $profile_row['name']; ?></option>
    <?php
		}
	}
?>